﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/HomeMasterPage.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="User_Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="inside" style="margin-top:-30px;z-index:1000px">
   <div style="margin-left: 0px" > <img src="images/tintuc.png" alt=""  /></div>
   <div style="margin-top: 20px; "> <asp:FormView ID="FormView1" runat="server">
                <ItemTemplate>
                    <table class="style1" style="width: 100%">
                        <tr>
                            <td rowspan="2" width="168">
                                <a href='<%# "NewsDetail.aspx?MaTT="+Eval("MaTT")%>'><asp:Image ID="Image1" 
                                    runat="server"  width="207px" height="186px" 
                                    ImageUrl='<%# "~/User/HinhAnh/"+Eval("HinhAnh") %>' /></a>
                            </td>
                            <td class="style3" valign="top">
                                <asp:Image ID="Image2" runat="server" ImageUrl="~/User/images/icon-new.gif" />
                                <asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" 
                                    Font-Size="Medium" ForeColor="Blue" 
                                    NavigateUrl='<%# "~/User/NewsDetail.aspx?MaTT="+Eval("MaTT") %>' 
                                    Text='<%# Eval("TieuDe") %>' Font-Underline="False"></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3" valign="top" >
                                <div style="margin-left: 10px; margin-top:15px;"><asp:Label ID="Label2" runat="server" Text='<%# Eval("MoDau") %>' Font-Size="10pt"></asp:Label></div>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:FormView></div>
				<div style="clear:both;"></div>
				<div class="items">
                 <img src="images/NEWp.png" alt=""  /><br />  
                    <asp:DataList ID="dlSanPham" runat="server" RepeatColumns="3">
                        <ItemTemplate>
                        <div class="item">
                        <div style="padding:3px;">
						<a href='<%# "ProductDetail.aspx?MaSP="+Eval("MaSP")+"&LoaiSP="+Eval("LoaiSP")%>'> 
                        <asp:Image ID="Image1" runat="server" width="207px" height="186px" 
                                ImageUrl='<%# "~/User/HinhAnh/"+ Eval("HinhAnh") %>' /></a></div>
                        <div style="margin-top:-7px;padding:3px">
						    <p>
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                           NavigateUrl='<%# "~/User/ProductDetail.aspx?MaSP="+Eval("MaSP")+"&LoaiSP="+Eval("LoaiSP") %>'>Chi Tiết</asp:HyperLink>
                            </p><span class="price"> 
                                <asp:Label ID="Label2" runat="server" 
                                Text='<%# Eval("Gia","{0:0,00#VND}") %>'></asp:Label></span>
                                </div>
					    </div>
                        
                                            
                        </ItemTemplate>
                    </asp:DataList>
				</div>
                   
                
               <div style="clear:both;"></div>
				<div class="items" style="padding-top: 15px">
                 <img src="images/xemnhieu.png" alt=""  /><br />  
                    <asp:DataList ID="dlSanPhamXemNhieu" runat="server" RepeatColumns="3">
                        <ItemTemplate>
                        <div class="item">
                        <div style="padding:3px;">
						<a href='<%# "ProductDetail.aspx?MaSP="+Eval("MaSP")+"&LoaiSP="+Eval("LoaiSP")%>'> 
                        <asp:Image ID="Image1" runat="server" width="207px" height="186px" 
                                ImageUrl='<%# "~/User/HinhAnh/"+ Eval("HinhAnh") %>' /></a></div>
                        <div style="margin-top:-7px;padding:3px">
						    <p>
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                           NavigateUrl='<%# "~/User/ProductDetail.aspx?MaSP="+Eval("MaSP")+"&LoaiSP="+Eval("LoaiSP") %>'>Chi Tiết</asp:HyperLink>
                            </p><span class="price"> 
                                <asp:Label ID="Label2" runat="server" 
                                Text='<%# Eval("Gia","{0:0,00#VND}") %>'></asp:Label></span>
                                </div>
					    </div>
                        </ItemTemplate>
                    </asp:DataList>
				</div>
                </div> 
               </div>      
</asp:Content>

